if (do_name() != 'Home') : ?>
Reference | pop()
endif ?> Syntax
pop()
Description NodeBox is a so-called state-machine. For example, once rotate(45) is called, all subsequent shapes, paths, text and images are rotated 45 degrees. The rotation state is 45 degrees. The push() and pop() commands allow for a state within a state. All transformations, such as rotate() and skew(), defined between a push() and pop() call last only until pop() is called. Thereafter the previous state is used. For example, a rotate(-30) within a rotate(45) means a rotation state of 15 degrees until pop() is called and the rotation state becomes 45 degrees again.
Tutorial Graphics State
Example
include("util/comment.php"); ?>
fill(0.2) fontsize(14) rotate(90) text("one", 40, 80) push() rotate(-90) text("two", 40, 40) pop() text("three", 50, 80)